<?php

class SubscriberView extends ArrayProcessor_Translator {
	
	public static function listSubscriber ($data)  {
		$html = MainView::getHTMLElement();
		
		
		$html = Scripts_SubscriberViewScript::generateListView($data, $html);
		
		MainController::setGeneratedContent($html->toString(), Replacer::PLACEHOLDER_CONTENT);
	}
	
	public static function editSubscriber ($data)  {
		$html = MainView::getHTMLElement();
	
		self::structureToFunction($html, $data, HTML_FORM::HTML_FORM);
	
		MainController::setGeneratedContent($html->toString(), Replacer::PLACEHOLDER_CONTENT);
	
		MainController::setGeneratedContent('', Replacer::PLACEHOLDER_SUB_MENU);
	}
	
	public static function subMenuFrame ($data)  {
		$html = MainView::getHTMLElement();
		
		self::subMenu($html, $data);
		
		MainController::setGeneratedContent($html->toString(), Replacer::PLACEHOLDER_SUB_MENU);
	}
	
	public static function subMenu ($parent, $data)  {
		self::structureToFunction($parent, $data, HTML_LI::HTML_LI);
	}
	
}